package com.srinivasu;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class SessionInvalidation implements HttpSessionListener{

	@Override
	public void sessionCreated(HttpSessionEvent arg0) {
		//add session attributes 
		
	}

	@Override
	public void sessionDestroyed(HttpSessionEvent arg0) {
		//remove the session attributes
		
	}
	

}
/*in web.xml
	<web-app>
		<listener>
			<listener-class>com.mkyong.SessionCounterListener</listener-class>
		</listener>
	</web-app>
*/